var t = getApp();

Page({
    data: {
        total: "",
        activeName: "first",
        first_content: [],
        second_content: [],
        third_content: [],
        is_first_content: !1,
        is_second_content: !1,
        is_third_content: !1
    },
    onLoad: function(t) {
        this.getCreditLog(), this.initInfo();
    },
    onReady: function() {},
    onShow: function() {},
    onHide: function() {},
    onUnload: function() {},
    onPullDownRefresh: function() {},
    onReachBottom: function() {},
    onShareAppMessage: function() {},
    initInfo: function() {
        var n = this, o = t.getNetAddresss("plugin.credit.api.credit.get-credit");
        t._getNetWork({
            url: o,
            success: function(t) {
                var o = t.data;
                1 === o.result ? n.setData({
                    total: o.data.total
                }) : wx.showToast({
                    title: o.msg,
                    icon: "none"
                });
            },
            fail: function(t) {
                console.log(t);
            }
        });
    },
    getCreditLog: function() {
        var n = this, o = t.getNetAddresss("plugin.credit.api.credit.get-credit-log");
        t._getNetWork({
            url: o,
            success: function(t) {
                var o = t.data;
                1 === o.result ? n.setData({
                    first_content: o.data
                }) : wx.showToast({
                    title: o.msg,
                    icon: "none"
                });
            },
            fail: function(t) {
                console.log(t);
            }
        });
    },
    onChange: function(t) {
        console.log(t, "555");
    }
});